<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('space_doing');
0
|| checktplrefresh('./template/qu_app/touch/home/space_doing.htm', './template/qu_app/touch/common/usertop.htm', 1537607382, 'diy', './data/template/7_diy_touch_home_space_doing.tpl.php', './template/qu_app', 'touch/home/space_doing')
|| checktplrefresh('./template/qu_app/touch/home/space_doing.htm', './template/qu_app/touch/common/usernav.htm', 1537607382, 'diy', './data/template/7_diy_touch_home_space_doing.tpl.php', './template/qu_app', 'touch/home/space_doing')
|| checktplrefresh('./template/qu_app/touch/home/space_doing.htm', './template/qu_app/touch/common/showface.htm', 1537607382, 'diy', './data/template/7_diy_touch_home_space_doing.tpl.php', './template/qu_app', 'touch/home/space_doing')
|| checktplrefresh('./template/qu_app/touch/home/space_doing.htm', './template/qu_app/touch/common/userbottom.htm', 1537607382, 'diy', './data/template/7_diy_touch_home_space_doing.tpl.php', './template/qu_app', 'touch/home/space_doing')
;?><?php include template('common/header'); if($space['uid'] == $_G['uid']) { ?>
    <header class="header">
        <div class="nav">
            <a href="javascript:;" onclick="history.go(-1)" class="z back"><i class="iconfont icon-back"></i></a>
            <span class="category"><span class="name">记录</span>
            </span>
        </div>
    </header>
<div class="ainuo_usertb cl">
        <ul class="tb ado cl">
        	<li<?php echo $actives['me'];?>><a href="home.php?mod=space&amp;do=<?php echo $do;?>&amp;view=me">我的记录</a></li>
            <li<?php echo $actives['we'];?>><a href="home.php?mod=space&amp;do=<?php echo $do;?>&amp;view=we">我和好友的记录</a></li>
<li<?php echo $actives['all'];?>><a href="home.php?mod=space&amp;do=<?php echo $do;?>&amp;view=all">随便看看</a></li>
        </ul>
    </div>
    <div class="grey_line cl"></div>
<div class="ainuo_udoing cl">
    
<?php } else { ?>
<div class="ainuo_gotomy_menu_cover cl" id="gotomaskmenu" style="display:none;"></div>
<div id="ainuo_gotomy_menu" class="ainuo_gotomy_menu cl" style="display:none;">
    <a href="forum.php?mod=guide&amp;view=hot"><i class="iconfont icon-home"></i><?php echo $alang_backhome;?></a>
    <a href="home.php?mod=space&amp;uid=<?php echo $_G['uid'];?>&amp;do=profile"><i class="iconfont icon-forward"></i><?php echo $alang_myhome;?></a>
    <a href="home.php?mod=space&amp;uid=<?php echo $_G['uid'];?>&amp;do=profile&amp;mycenter=1" style="border:none;"><i class="iconfont icon-settings"></i><?php echo $alang_myset;?></a>
</div>
<style>
.useravabg{ position:absolute; width:100%; height:100%; background:url(<?php echo avatar($space[uid], big, true);?>) no-repeat;background-position:center;background-size: cover;}
</style>
<div class="ainuo_user_avatar">
<div class="useravabg ainuo-blur" id="useravabg"></div>
<div class="ausertop cl">
    	<a href="javascript:;" onclick="history.go(-1)" class="z"><i class="iconfont icon-back"></i></a>
        <?php if($space['uid'] == $_G['uid']) { ?>
        <em>个人资料</em>
        <?php } else { ?>
        <em><?php echo $space['username'];?><?php echo $alang_tahome;?></em>
        <?php } ?>
<span><a href="javascript:;" class="ainuo_nologin ainuo_gotomy" id="ainuo_gotomy"><i class="iconfont icon-more"></i></a></span>
    </div>

    
    <div class="avatar_m cl">
    	<div class="img_left cl">
        	<img src="<?php echo avatar($space[uid], middle, true);?>" />
            <?php if($_G['uid'] == $space['uid']) { ?>
            <a href="javascript:;" class="modifi_ava ainuoxgtxya"><?php echo $alang_umodifyava;?></a>
            <input type="file" id="file" accept="image/*">
            <?php } ?>
        </div>
        <div class="img_right cl">
        	<h2><a href="home.php?mod=space&amp;uid=<?php echo $space['uid'];?>&amp;do=profile"><?php echo $space['username'];?></a>
            <span class="uid">UID:<?php echo $space['uid'];?></span>
            <?php if($_G['ols'][$space['uid']]) { ?>
<span>在线</span>
            <?php } ?>
            </h2>
            <?php $agroupid = DB::result_first('SELECT `groupid` FROM '.DB::table('common_member').' WHERE `uid` ='.$space[uid].'')?>            <?php if($agroupid) { ?>
            <?php $agrouptitle = DB::result_first('SELECT `grouptitle` FROM '.DB::table('common_usergroup').' WHERE `groupid` ='.$agroupid.'')?>            <?php } else { ?>
            <?php $agrouptitle = ''?>            <?php } ?>
            <p><?php echo $agrouptitle;?></p>
            
<?php if(helper_access::check_module('follow') && $space['uid'] != $_G['uid']) { ?>
            <div class="guanzhu cl">
                <?php $follow = 0;?>                <?php $follow = C::t('home_follow')->fetch_all_by_uid_followuid($_G['uid'], $space['uid']);?>                
                <?php if(!$follow) { ?>
                    <a onclick="guanzhutis('<?php echo $space['uid'];?>')" href="javascript:;"><i class="iconfont icon-like"></i><span id="tex_<?php echo $space['uid'];?>" class="tex_<?php echo $space['uid'];?>"><?php echo $alang_guanzhu;?></span></a>
                <?php } else { ?>
                    <a onclick="guanzhutis('<?php echo $space['uid'];?>')" href="javascript:;" ><i class="iconfont icon-like"></i><span id="tex_<?php echo $space['uid'];?>" class="tex_<?php echo $space['uid'];?>"><?php echo $alang_yiguanzhu;?></span></a>
<?php } ?>

            </div>
            <?php } ?>
        </div>
    </div>
    <div class="ainuo_user_avatarbg"></div>
</div>


<link href="template/qu_app/touch/style/avatar/css/avatar.css?<?php echo VERHASH;?>" rel="stylesheet" type="text/css" media="all">


<section id="reset_avatar">
    <div id="canvas_fullscreen" style="display: none;position:absolute;bottom:0px;left:0px; z-index:189;">
        <div class="header" style="z-index:199">
            <div class="nav">
                <a href="javascript:;" class="cancel z" onclick="$('#canvas_fullscreen').hide();$('html,body').removeClass('hidden');">取消</a>
                <span class="name"><?php echo $alang_umodifyava;?></span>
<a id="finish" href="javascript:;" class="y" style="font-size:14px;"><?php echo $alang_wancheng;?></a>
            </div>
        </div>

        <div id="canvas_content">

            <div class="canvas_edit">
                <div id="canvas_area"></div>
                <div class="canvas_opera" style="z-index:999;">
                    <button id="positive-rotate"><i class="iconfont icon-youxuanzhuan"></i></button>
                    <button id="inverse-rotate"><i class="iconfont icon-zuoxuanzhuan"></i></button>
                    <button id="reduction"><i class="iconfont icon-suoxiao"></i></button>
                    <button id="magnification"><i class="iconfont icon-fangda"></i></button>
                </div>
            </div>
            <img fileName="" id="canvas_view" class="hide">
            <canvas id="canvas_preview"></canvas>
        </div>

    </div>

    <div class="canvas_lazy_tip hide"><span>1%</span><div class="spinner"></div></div>
    <div class="canvas_lazy_cover hide"></div>

</section><?php include template('common/modifyava'); ?><script type="text/javascript">
function guanzhutis(aid){
<?php if(!$_G['uid']) { ?>
popup.open('您还未登录，立即登录?', 'confirm', 'member.php?mod=logging&action=login');
return false;
<?php } ?>
if(document.getElementById("tex_"+aid).innerHTML.indexOf("<?php echo $alang_guanzhu;?>") >= 0){
var ahref = 'home.php?mod=spacecp&ac=follow&op=add&fuid='+aid+'&hash=<?php echo FORMHASH;?>';
}else{
var ahref = 'home.php?mod=spacecp&ac=follow&op=del&fuid='+aid;
}
$('body').append('<div class="ainuooverlay"><div class="loadings_icon"><i class="toast-loading toast-icon_toast"></i></div></div>');
$.ajax({
type:'GET',
url:ahref + '&inajax=1',
dataType:'xml',
})
.success(function(s) {	
if(s.lastChild.firstChild.nodeValue.indexOf("<?php echo $alang_cgshouting;?>") >= 0){
$(".tex_"+aid).text('<?php echo $alang_yiguanzhu;?>');
$('.ainuooverlay').remove();
showMessage('<?php echo $alang_cgshouting2;?>');
}else if(s.lastChild.firstChild.nodeValue.indexOf("<?php echo $alang_qxchenggong;?>") >= 0){
$(".tex_"+aid).text('<?php echo $alang_guanzhu;?>');
//$("."+clsa).attr('href','home.php?mod=spacecp&ac=follow&op=del&fuid='+aid); 
$('.ainuooverlay').remove();
showMessage('<?php echo $alang_qxchenggong2;?>');
}else{
$('.ainuooverlay').remove();
popup.open(s.lastChild.firstChild.nodeValue);
evalscript(s.lastChild.firstChild.nodeValue);
}
})
.error(function() {
window.location.href = obj.attr('href');
$('.ainuooverlay').remove();
});
return false;
};
</script>

<script>
$(document).ready(function(){
$("#ainuo_gotomy").click(function(){
<?php if(!$_G['uid']) { ?>
popup.open('您还未登录，立即登录?', 'confirm', 'member.php?mod=logging&action=login');
return false;
<?php } ?>
$("#ainuo_gotomy_menu").slideToggle();
$("#gotomaskmenu").toggle();
});	
$("#gotomaskmenu").click(function(){
$("#gotomaskmenu").toggle();
$("#ainuo_gotomy_menu").slideToggle();
});

});
</script>
<div class="ainuo_usernav cl">
    <div id="usernav" class="swiper-container-horizontal swiper-container-free-mode">
          	<ul class="swiper-wrapper">
            		<?php if(empty($personalnv['banitems']['profile'])) { ?>
                    <li class="swiper-slide<?php if($_GET['do'] == 'profile') { ?> a<?php } ?>"><a href="home.php?mod=space&amp;uid=<?php echo $space['uid'];?>&amp;do=profile"><?php echo $alang_ziliao;?></a></li>
                    <?php } ?>
                    <?php if(empty($personalnv['banitems']['feed']) && helper_access::check_module('feed')) { ?>
                    <li class="swiper-slide<?php if($_GET['do'] == 'home') { ?> a<?php } ?>"><a href="home.php?mod=space&amp;uid=<?php echo $space['uid'];?>&amp;do=home&amp;view=me&amp;from=space"><?php if(!empty($personalnv['items']['feed'])) { ?><?php echo $personalnv['items']['feed'];?><?php } else { ?>动态<?php } ?></a></li>
                    <?php } ?>
                    <?php if($_G['setting']['allowviewuserthread'] !== false && (empty($personalnv['banitems']['topic']))) { ?>
                    <li class="swiper-slide<?php if($_GET['do'] == 'thread') { ?> a<?php } ?>"><a href="home.php?mod=space&amp;uid=<?php echo $space['uid'];?>&amp;do=thread&amp;view=me&amp;from=space"><?php if(!empty($personalnv['items']['topic'])) { ?><?php echo $personalnv['items']['topic'];?><?php } else { ?>主题<?php } ?></a></li>
                    <?php } ?>
                    <?php if(empty($personalnv['banitems']['doing']) && helper_access::check_module('doing')) { ?>
                    <li class="swiper-slide<?php if($_GET['do'] == 'doing') { ?> a<?php } ?>"><a href="home.php?mod=space&amp;uid=<?php echo $space['uid'];?>&amp;do=doing&amp;view=me&amp;from=space"><?php if(!empty($personalnv['items']['doing'])) { ?><?php echo $personalnv['items']['doing'];?><?php } else { ?>记录<?php } ?></a></li>
                    <?php } ?>
                    <?php if(empty($personalnv['banitems']['blog']) && helper_access::check_module('blog')) { ?>
                    <li class="swiper-slide<?php if($_GET['do'] == 'blog') { ?> a<?php } ?>"><a href="home.php?mod=space&amp;uid=<?php echo $space['uid'];?>&amp;do=blog&amp;view=me&amp;from=space"><?php if(!empty($personalnv['items']['blog'])) { ?><?php echo $personalnv['items']['blog'];?><?php } else { ?>日志<?php } ?></a></li>
                    <?php } ?>
                    <?php if(empty($personalnv['banitems']['album']) && helper_access::check_module('album')) { ?>
                    <li class="swiper-slide<?php if($_GET['do'] == 'album') { ?> a<?php } ?>"><a href="home.php?mod=space&amp;uid=<?php echo $space['uid'];?>&amp;do=album&amp;view=me&amp;from=space"><?php if(!empty($personalnv['items']['album'])) { ?><?php echo $personalnv['items']['album'];?><?php } else { ?>相册<?php } ?></a></li>
                    <?php } ?>
                    <?php if(empty($personalnv['banitems']['follow']) && helper_access::check_module('follow')) { ?>
                    <li class="swiper-slide<?php if($_GET['mod'] == 'follow' && $_GET['do'] == 'view') { ?> a<?php } ?>"><a href="home.php?mod=follow&amp;uid=<?php echo $space['uid'];?>&amp;do=view"><?php if(!empty($personalnv['items']['follow'])) { ?><?php echo $personalnv['items']['follow'];?><?php } else { ?>广播<?php } ?></a></li>
                    <?php } ?>
                    
                   
                    <?php if(empty($personalnv['banitems']['wall']) && helper_access::check_module('wall')) { ?>
                    <li class="swiper-slide<?php if($_GET['do'] == 'wall') { ?> a<?php } ?>"><a href="home.php?mod=space&amp;uid=<?php echo $space['uid'];?>&amp;do=wall"><?php echo $alang_liuyan;?></a></li>
                    <?php } ?>
                    

            </ul>
    </div>
</div>


<script type="text/javascript">
if($("#usernav .a").length > 0) {
var ainuo_first = $("#usernav .a").offset().left + $("#usernav .a").width() >= $(window).width() ? $("#usernav .a").index() : 0;
}else{
var ainuo_first = 0;
}	
mySwiper = new Swiper('#usernav', {
freeMode : true,
slidesPerView : 'auto',
initialSlide : ainuo_first,
});
</script>

<div class="grey_line cl"></div><div class="ainuo_udoing cl">
<?php } ?> 
    
<div class="cl">
            	<div class="cl">
            		<div class="cl">



<?php if($searchkey) { ?>
<div class="dashedtip">以下是搜索记录 <span style="color: red; font-weight: 700;"><?php echo $searchkey;?></span> 结果列表</div>
<?php } if($dolist) { ?>
<div class="doing_list cl"><?php if(is_array($dolist)) foreach($dolist as $dv) { $doid = $dv[doid];?><?php $_GET[key] = $key = random(8);?><li id="<?php echo $key;?>dl<?php echo $doid;?>" class="lione cl">
<div class="avt cl"><a href="home.php?mod=space&amp;uid=<?php echo $dv['uid'];?>"><?php echo avatar($dv[uid],middle);?></a></div>
<div class="ainfo cl">
                    	<div class="atime cl"><?php echo $dv['username'];?><span><?php echo dgmdate($dv['dateline'], 'u');?></span></div>
                        <div class="amsg cl"><?php echo $dv['message'];?> <?php if($dv['status'] == 1) { ?> <span>(待审核)</span><?php } ?></div> 
                        <?php $list = $clist[$doid];?>                        <div class="brm" id="<?php echo $key;?>_<?php echo $doid;?>"<?php if(empty($list) || !$showdoinglist[$doid]) { ?> style="display:none;"<?php } ?>>
                            <span id="<?php echo $key;?>_form_<?php echo $doid;?>_0"></span>
                            <?php include template('home/space_doing_li'); ?>                        </div>
                        <?php if($_G['uid']) { ?>
                        <div class="caozuo cl">
                            <?php if(helper_access::check_module('doing')) { ?>
                            <a ainuoto="home.php?mod=spacecp&amp;ac=doing&amp;op=comment&amp;doid=<?php echo $doid;?>&amp;id=<?php echo $id;?>" class="ainuodialog">回复</a>
                            <?php } ?>
                            <?php if($dv['uid']==$_G['uid']) { ?>
                            	<a ainuoto="home.php?mod=spacecp&amp;ac=doing&amp;op=delete&amp;doid=<?php echo $doid;?>&amp;id=<?php echo $dv['id'];?>&amp;handlekey=doinghk_<?php echo $doid;?>_<?php echo $dv['id'];?>" id="<?php echo $key;?>_doing_delete_<?php echo $doid;?>_<?php echo $dv['id'];?>" class="ainuodialog">删除</a>
                            <?php } ?>
                        </div>
                        <?php } ?>
</div>


</li>
<?php } if($pricount) { ?>
<p class="mtm">本页有 <?php echo $pricount;?> 条记录因未通过审核而隐藏</p>
<?php } ?>
</div>
<?php if($multi) { ?>
<div class="pgs cl mtm"><?php echo $multi;?></div>
<?php } elseif($_GET['highlight']) { ?>
<div class="pgs cl mtm"><div class="pg"><a href="home.php?mod=space&amp;do=doing&amp;view=me">查看更多</a></div></div>
<?php } } else { ?>
        	<div class="emp"><i class="iconfont icon-meiyougengduole"></i><p>现在还没有记录<?php if($space['self']) { ?>您可以用一句话记录下这一刻在做什么<?php } ?></p></div>
<?php } if($diymode) { ?>
</div>
</div>
<?php } ?>
</div>
</div>
 <?php if(helper_access::check_module('doing') && ($space['uid'] == $_G['uid'])) { ?>
<div class="cl" style="height:68px; width:100%"></div>
<div class="ainuo_viewdoing_bottom cl">
    <?php include template('home/space_doing_form'); ?></div>
<?php } ?><script>
function showFace(showid, target,dropstr) {
if(document.getElementById(showid + '_menu') != null) {
var smilemenucss = document.getElementById(showid+'_menu').style.display;
if(smilemenucss == ''){
document.getElementById(showid+'_menu').style.display = 'none';

$("#message_face i").css("color","#666");
}else{
document.getElementById(showid+'_menu').style.display = '';

$("#message_face i").css("color","#d43d3d");
}
} else {
var faceDiv = document.createElement("div");
faceDiv.id = showid+'_menu';
faceDiv.className = 'ainuo_facemenu cl';
var faceul = document.createElement("ul");
for(i=1; i<40; i++) {
var faceli = document.createElement("li");
faceli.innerHTML = '<img src="' + SITEURL + 'static/image/smiley/comcom/'+i+'.gif" onclick="insertFace(\''+showid+'\','+i+', \''+ target +'\', \''+dropstr+'\')" style="cursor:pointer; position:relative;" />';
faceul.appendChild(faceli);
}
faceDiv.appendChild(faceul);
document.getElementById('ainuo_facemenu').appendChild(faceDiv);

$("#message_face i").css("color","#d43d3d");
}
//_attachEvent(document.body, 'click', function(){if(document.getElementById(showid+'_menu')) document.getElementById(showid+'_menu').style.display = 'none';});
}
function insertFace(showid, id, target, dropstr) {
var faceText = '[em:'+id+':]';
if(document.getElementById(target) != null) {
insertContent(target, faceText);

}
}
function checkFocus(target) {
var obj = document.getElementById(target);
if(!obj.hasfocus) {
obj.focus();
}
}
function insertContent(target, text) {
var obj = document.getElementById(target);
selection = document.selection;
checkFocus(target);
if(!isUndefined(obj.selectionStart)) {
var opn = obj.selectionStart + 0;
obj.value = obj.value.substr(0, obj.selectionStart) + text + obj.value.substr(obj.selectionEnd);
} else if(selection && selection.createRange) {
var sel = selection.createRange();
sel.text = text;
sel.moveStart('character', -strlen(text));
} else {
obj.value += text;
}
}
</script><script>
$('.ainuo_nologin').on('click', function() {
<?php if(!$_G['uid']) { ?>
popup.open('您还未登录，立即登录?', 'confirm', 'member.php?mod=logging&action=login');
return false;
<?php } ?>
});
</script><?php if(!$_GET['mycenter'] && ($space['uid'] != $_G['uid'])) { ?>
<div class="cl" style="width:100%; height:41px"></div>
<div class="ainuo_user_bot cl">
<a ainuoto="home.php?mod=spacecp&amp;ac=friend&amp;op=add&amp;uid=<?php echo $space['uid'];?>&amp;handlekey=addfriendhk_<?php echo $space['uid'];?>" class="ainuo_nologin jhy ainuodialog"><i class="iconfont icon-friendadd"></i><?php echo $alang_addfriend;?></a>
    <a ainuoto="home.php?mod=spacecp&amp;ac=poke&amp;op=send&amp;uid=<?php echo $space['uid'];?>&amp;handlekey=propokehk_<?php echo $space['uid'];?>" class="dzh ainuo_nologin ainuodialog"><i class="iconfont icon-new"></i><?php echo $alang_addzhaohu;?></a>
    <a href="home.php?mod=space&amp;do=pm&amp;subop=view&amp;touid=<?php echo $space['uid'];?>" class="ainuo_nologin fxx"><i class="iconfont icon-comment"></i><?php echo $alang_addmessage;?></a>
</div>

<?php } include template('common/footer'); ?>